﻿using System;
public class Prime
{
   public static void Main()
   {
       Console.Write("请输入一个正整数：");
       int number = int.Parse(Console.ReadLine());

       Console.Write("该数的素数因子有：");
       for (int i = 2; i <= number; i++)
       {
           while (number % i == 0)
           {
               Console.Write(i + " ");
               number /= i;
           }
       }
   }
}
